package com.atmilan.quartz.service.impl;

import com.atmilan.quartz.mapper.PaoloProductMapper;
import com.atmilan.quartz.model.entity.paolo.PaoloProduct;
import com.atmilan.quartz.service.IPaoloProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class IPaoloProductServiceImpl extends ServiceImpl<PaoloProductMapper, PaoloProduct> implements IPaoloProductService {
    @Resource
    PaoloProductMapper paoloProductMapper;

    @Override
    public void deleteAll() {
        paoloProductMapper.deleteAll();
    }

    @Override
    public void copyAll() {
        paoloProductMapper.deleteProductBack();
        paoloProductMapper.copyProductBack();
    }
}
